/*
 * Copyright (c) 2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef LNN_NET_BUILDER_MOCK_H
#define LNN_NET_BUILDER_MOCK_H

#include <gmock/gmock.h>
#include <mutex>

#include "lnn_net_builder.h"

namespace OHOS {
class LnnNetBuilderInterface {
public:
    LnnNetBuilderInterface() {};
    virtual ~LnnNetBuilderInterface() {};

    virtual int32_t LnnRequestLeaveSpecific(const char *networkId, ConnectionAddrType addrType) = 0;
    virtual int32_t LnnSetDLConnUserId(const char *networkId, int32_t userId) = 0;
    virtual int32_t LnnSetDLConnUserIdCheckSum(const char *networkId, int32_t userIdCheckSum) = 0;
};

class LnnNetBuilderInterfaceMock : public LnnNetBuilderInterface {
public:
    LnnNetBuilderInterfaceMock();
    ~LnnNetBuilderInterfaceMock() override;

    MOCK_METHOD2(LnnRequestLeaveSpecific, int32_t(const char *, ConnectionAddrType));
    MOCK_METHOD2(LnnSetDLConnUserId, int32_t(const char *networkId, int32_t userId));
    MOCK_METHOD2(LnnSetDLConnUserIdCheckSum, int32_t(const char *networkId, int32_t userIdCheckSum));
};
} // namespace OHOS
#endif // LNN_NET_BUILDER_MOCK_H
